import { lazy } from 'react';

const variableRouter = [
  {
    path: '/strategyLabs',
    name: '策略实验室',
    des: '在策略实验室，可以通过自定义数据、线上实时数据、线上历史数据对试验策略进行试算，为策略调优提供数据依据。',
    component: lazy(() => import('./index.jsx')),
    exact: true,
    auth: true
  },
  {
    path: '/strategyLabs/add',
    name: '添加试验项',
    des: '',
    component: lazy(() => import('./Add')),
    exact: true,
    auth: true
  },
  {
    path: '/strategyLabs/:id/edit',
    name: '编辑试验项',
    des: '',
    component: lazy(() => import('./Add')),
    exact: true,
    auth: true
  },
  {
    path: '/strategyLabs/:id/detail',
    name: '试验详情',
    des: '',
    component: lazy(() => import('./Detail')),
    exact: true,
    auth: true
  },
  {
    path: '/strategyLabs/:id/detail/:id/details',
    name: '事件详情',
    des: '',
    component: lazy(() => import('../Monitor/Event/detail.jsx')),
    exact: true,
    auth: true,
  },
];

export default variableRouter;
